using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using ServiceStack.DataAnnotations;

namespace MMM.Services.Type
{
    /// <summary>
    /// 在职信息
    /// </summary>
    [Serializable]
    [Route("/api/inserviceinfo", "POST,PUT")]
    public class InServiceInfo : EntityBase<InServiceInfo>
    {
        /// <summary>
        /// 员工Id
        /// </summary>
        [StringLength(50)]
        [Required]
        public String EmpId { get; set; }
        /// <summary>
        /// 员工姓名
        /// </summary>
        [StringLength(50)]
        [Required]
        [Index]
        public String EmpName { get; set; }
        /// <summary>
        /// 所在公司
        /// </summary>
        [StringLength(50)]
        [Required]
        public String CustomerName { get; set; }
        /// <summary>
        /// 所在部门
        /// </summary>
        [StringLength(50)]
        public String Department { get; set; }
        /// <summary>
        /// 入职日期
        /// </summary>
        public DateTime? EntryDate { get; set; }
        /// <summary>
        /// 离职日期
        /// </summary>
        public DateTime? QuitDate { get; set; }
        /// <summary>
        /// 工作状态
        /// </summary>
        [StringLength(50)]
        public String WorkingState { get; set; }
        /// <summary>
        /// 职务
        /// </summary>
        [StringLength(50)]
        public String Duties { get; set; }
        /// <summary>
        /// 职位
        /// </summary>
        [StringLength(50)]
        public String Position { get; set; }
        /// <summary>
        /// 办公电话
        /// </summary>
        [StringLength(50)]
        public String BusinessPhone { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [StringLength(50)]
        public String PhoneNumber { get; set; }
        /// <summary>
        /// 办公邮件
        /// </summary>
        [StringLength(50)]
        public String BusinessEmail { get; set; }
        /// <summary>
        /// 汇报对象
        /// </summary>
        [StringLength(50)]
        public String ReportTo { get; set; }

    }
}
